<div class='span12'>
	<!-- HEADER -->
	<div class='row-fluid'>
		<div class='span12'>
			<div class='page-header'>

				<h1 class="span8">
					<i class='icon-bullhorn'></i> <span>PAGES MANAGEMENT</span>
				</h1>
			</div>
		</div>
	</div>

	<!-- END OF HEADER -->

	<div class='row-fluid'>
		<div class="span12 box bordered-box blue-border"
			style="margin-bottom: 0;">
			<div class="box-header blue-background">
				<div class="title">Pages Management : <?= $page['info']->title;?></div>
				<div class="actions">
					<a href="#" class="btn box-remove btn-mini btn-link"><i
						class="icon-remove"></i> </a> <a href="#"
						class="btn box-collapse btn-mini btn-link"><i></i> </a>
				</div>
			</div>
			


			<form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current();?>"
			class="form form-horizontal" method="post">
			
			<?php if(Session::get('message')){?>
                    <p>
                        <?=
                        (Session::get('message') ? Session::get('message') : '');
                        ?>
                    </p>
                    <?php }?>
			<div class="box-content">
			
			<span class="pull-right text text-error">* Marks fields are mandatory</span>
			<hr class="hr-normal">
			
                    <div class="control-group">
                        <label class="control-label" >Title <span class="text text-error">*</span></label>
                        <div class="controls">
                            <input class="input-xxlarge" placeholder="Title" type="text"  name="title" value="<?= $page['info']->title;?>" >
                            <span class="text text-error"><?= $errors->first('name')?></span>
                        </div>
                    </div>
                    
					<div class="control-group">
					<label class="control-label">Content
						<span class="text text-error">*</span></label>
						<div class="controls">
							<div class="span12 box">
							
								<!--  -->
								<textarea class="span12 wysihtml5"  id="description" name="content" rows="10" placeholder="Some text here..."><?= $page['info']->content;?> </textarea>

							

							
						</div>
						</div>
					</div>
					<hr class="hr-normal">
					
					<div class="control-group">
                        <label class="control-label" >Meta Title <span class="text text-error">*</span></label>
                        <div class="controls">
                            <input class="input-xxlarge" placeholder="Meta Title" type="text"  name="meta_title" value="<?= $page['info']->meta_title;?>" >
                            <span class="text text-error"><?= $errors->first('meta_title')?></span>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" >Meta Keyword </label>
                        <div class="controls">
                            <input class="input-xxlarge" placeholder="Meta Keyword" type="text"  name="meta_keyword" value="<?= $page['info']->meta_keyword;?>" >
                            
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" >Meta Description </label>
                        <div class="controls">
                            <textarea class="input-xxlarge" name="meta_description" rows="3"><?= $page['info']->meta_description;?></textarea>
                            
                        </div>
                    </div>



					<div class="form-actions">
						<input type="hidden" name="pageID" id="pageID"
							value="<?= $page['info']->id;?>">
						<button class="btn btn-primary" type="submit" name='btn'
							value="save"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
							<i class="icon-save"></i> Save
						</button>
						<button class="btn" type="submit"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>Cancel</button>
					</div>

				</div>
			</form>


		</div>
	</div>
</div>

<!-- END OF CONTENT -->








